package com.zhixiang.xaec.action.count;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.zhixiang.core.web.action.BaseAction;
import com.zhixiang.xaec.service.safebase.safemeeting.MeetManageService;

@Controller
@Scope("prototype")
public class MeetManageChartAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Autowired
	private MeetManageService meetManageService;
	
	
	@RequestMapping
	public ModelAndView index(HttpServletRequest request,HttpServletResponse response) {	
		ModelAndView modelandview=new ModelAndView();
		//modelandview.getModel().put("sel_sex",DicService.GetDataNameExtArrayByDicNo("SEX"));	 
		return modelandview;
	}
	
	 public String getChart(){
//		 String year = String.valueOf(getRequest().getParameter("year"));
		    try { 
//		    	outJsonString(meetManageService.getChartByFtl(year));
		    	setResult(meetManageService.getChartByFtl());
		    } catch (Exception e) {  
		    	
		    }  
		    return SUCCESS;
	 }
}
